//
//

#import <Foundation/Foundation.h>

@interface NSString (computerSize)
- (CGSize)boundingRectWithSize:(CGSize)size withTextFont:(UIFont *)font lineSpace:(CGFloat)lineSpace;
- (CGSize)boundingRectWithSize:(CGSize)size withTextFont:(UIFont *)font lineSpace:(CGFloat)lineSpace AndheadIndent:(CGFloat)headIndent;
- (CGFloat)widthWithFont:(UIFont *)font constrainedToHeight:(CGFloat)height;
- (CGSize)boundingRectWithSize:(CGSize)size withTextFont:(UIFont *)font;

+(NSInteger)getDaysFrom:(NSDate *)serverDate To:(NSDate *)endDate;
+(NSString *)judgeDay:(NSString *)str;
+(NSString *)judgeTodayWeek:(NSDate *)date;
+(NSString *)currentYearToDay;
+(NSString *)JudegeAddDay:(NSInteger)addDay;
+(NSString *)sendTimeStrToSSS:(NSString *)timeStr;

+(NSString *)currentTimeAndFormat:(NSString *)format;
+(NSString *)ChangZiYouYangShi:(NSString *)str AndYangShi:(NSString *)yangShi AndModelRenYangShi:(NSString *)moRenYangShi;
+ (NSString *)firstCharactor:(NSString *)aString;
+(NSString *)filterHTML:(NSString *)html;

-(NSString *)JSONStringWithDic:(NSMutableDictionary *)sortDic;
-(NSString *)JSONStringWithArrDic:(NSMutableDictionary *)dic;

+ (BOOL)valiMobile:(NSString *)mobile;
+ (BOOL)checkCardNo:(NSString*) cardNo;
+ (BOOL)isCorrectMoneyNumber:(NSString *)moneyNum;
+ (BOOL)checkCarNumber:(NSString *) CarNumber;
+ (BOOL)checkMailInput:(NSString *)mail;
+ (BOOL)isCorrect:(NSString *)IDNumber;

+(int)compareDate:(NSString*)date01 withDate:(NSString*)date02 AndYangShi:(NSString *)yangshi;
+(instancetype)ArrayWithStr:(NSMutableDictionary *)sortDic;

@end
